package com.tjcd.project.library_base.common.basicInfor;

import android.text.TextUtils;

import androidx.annotation.Keep;

import com.blankj.utilcode.util.SPStaticUtils;

/**
 * @Author jiangKunKun
 * @CreateDate 2021/7/26
 * @Description
 * @SpittingGrooves
 */
@Keep
public class SugarSpVariable {
    /**
     * 省
     */
    private final static String PROVINCE = "Province";
    /**
     * 市
     */
    private final static String CITY = "City";
    /**
     * 区
     */
    private final static String AREA = "area";
    /**
     * 经度
     */
    private final static String LONGITUDE = "Longitude";
    /**
     * 纬度
     */
    private final static String LATITUDE = "Latitude";

    /**
     * 省
     */
    public static String getProvince() {
        return TextUtils.isEmpty(SPStaticUtils.getString(PROVINCE)) ? "" : SPStaticUtils.getString(PROVINCE);
    }

    public static void setProvince(String Province) {
        SPStaticUtils.put(PROVINCE, Province);
    }

    /**
     * 市
     */
    public static String getCity() {
        return TextUtils.isEmpty(SPStaticUtils.getString(CITY)) ? "" : SPStaticUtils.getString(CITY);
    }

    public static void setCity(String City) {
        SPStaticUtils.put(CITY, City);
    }

    /**
     * 区
     * @return
     */
    public static String getArea() {
        return TextUtils.isEmpty(SPStaticUtils.getString(AREA)) ?  "" : SPStaticUtils.getString(AREA);
    }

    public static void setArea(String area) {
        SPStaticUtils.put(AREA, area);
    }

    /**
     * 经度
     */
    public static String getLongitude() {
        return TextUtils.isEmpty(SPStaticUtils.getString(LONGITUDE)) ? "" : SPStaticUtils.getString(LONGITUDE);
    }

    public static void setLongitude(String Longitude) {
        SPStaticUtils.put(LONGITUDE, Longitude);
    }

    /**
     * 纬度
     * @return
     */
    public static String getLatitude() {
        return TextUtils.isEmpty(SPStaticUtils.getString(LATITUDE)) ? "" : SPStaticUtils.getString(LATITUDE);
    }

    public static void setLatitude(String Latitude) {
        SPStaticUtils.put(LATITUDE, Latitude);
    }



}
